
var seminars_type=getQueryString('seminars_type');
$("#seminars_select span").click(function(){
	var val=$(this).attr('data-value');
	var obj=parseURL(window.location.href);
	var params="";
	obj.params.page=1;
	obj.params.seminars_type=val;
	var m=0;
	for(var i in obj.params){
		if(m==0){
			params+=(i+'=' + obj.params[i]);
		}else{
			params+=('&'+ i+'=' + obj.params[i]);
		}
		m++;
	}
	var url='http://' + obj.host + ':' + obj.port + obj.path + '?' + params;
	window.location.href=url;
})

if(seminars_type){
	$("#seminars_select span").removeClass('active');
	$("#seminars_select span").each(function(){
		if($(this).attr('data-value')==seminars_type){
			$(this).addClass("active");
			return false;
		}
	})
}